package com.herench.bs.utils;

public class NameUtils {
    public static boolean ChineseName(String name) {
            if (!name.matches("[u4E00-\u9FA5]{2,4}")) {
                System.out.println("只能输入2到4个汉字");
                return false;
            }else return true;
        }
}
